package exchange.util;

import exchange.netserver.Server;

public class Main {
		
	public static void main (String [] args) throws ParseException, InterruptedException {
		
		Stock GOLD 		= new Stock("GOLD");
		Stock WOOD 		= new Stock("WOOD");
		Stock ORE 		= new Stock("ORE");
		Stock GEMS 		= new Stock("GEMS");
		Stock CRYSTALS 	= new Stock("CRYSTALS");
		Stock SULFUR 	= new Stock("SULFUR");
		Stock MERCURY	= new Stock("MERCURY");
		
		Exchange.addNewStock(GOLD);
		Exchange.addNewStock(WOOD);
		Exchange.addNewStock(ORE);
		Exchange.addNewStock(GEMS);
		Exchange.addNewStock(CRYSTALS);
		Exchange.addNewStock(SULFUR);
		Exchange.addNewStock(MERCURY);
		
		Server server = new Server();
		(new Thread(server)).start();
		
	}
}
